export const swap = (arr: unknown[], i: number, j: number) => {
  const temp = arr[i];
  arr[i] = arr[j];
  arr[j] = temp;
};

export const reOrder = (arr: unknown[], i: number, j: number) => {
  const toMove = arr[i];
  arr.splice(i, 1);
  arr.splice(j, 0, toMove);
};
